//
//  SRPickerView.h
//  PartTimeJob
//
//  Created by 孙锐 on 2017/8/8.
//  Copyright © 2017年 孙锐. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface SRPickerView : UIView

@property (nonatomic, strong) NSDate *defaultDate;
@property (nonatomic, strong) NSDate *maxDate;
@property (nonatomic, strong) NSDate *minDate;
- (instancetype)initWithFrame:(CGRect)frame BackColor:(UIColor *)color AndTitle:(NSString *)text AndUIDatePickerMode:(UIDatePickerMode)mode AndTimeInterval:(int)timeInterval AndSureBlock:(void (^)(id date))sure AndCancelBlock:(void (^)(void))cancel;
-(void)setDate;

//格式：array:@[dictionary:@{@"num":@"0,1,2…",@"info":array}];
- (instancetype)initWithFrame:(CGRect)frame BackColor:(UIColor *)color AndTitle:(NSString *)text AndSureBlock:(void (^)(id string, int num))sure AndCancelBlock:(void (^)(void))cancel AndComponentsNumber:(int)num AndInfo:(NSArray *)arr;
-(void)selecctRow:(int)row;
@end
